Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): support greedy matches with subsequent static components. #3888

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

usualoma
Copy link
Member

@usualoma usualoma commented Feb 4, 2025

Fixes #3851

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 94.59459% with 2 lines in your changes missing coverage. Please review.

Project coverage is 91.30%. Comparing base (6b6fbad) to head (5f41cee).
Report is 8 commits behind head on next.

Files with missing lines Patch % Lines
src/router/trie-router/node.ts 92.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #3888      +/-   ##
==========================================
- Coverage   91.41%   91.30%   -0.11%     
==========================================
  Files         162      168       +6     
  Lines       10281    10666     +385     
  Branches     2894     3017     +123     
==========================================
+ Hits         9398     9739     +341     
- Misses        882      926      +44     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@usualoma usualoma marked this pull request as ready for review February 4, 2025 21:27
Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe
Copy link
Member

yusukebe commented Feb 6, 2025

Hi @usualoma

Great work! Thank you!

@yusukebe
Copy link
Member

yusukebe commented Feb 6, 2025

This is not a breaking change but I will not include it in a patch rerelease and will include the next minor version.

@yusukebe yusukebe changed the base branch from main to next February 6, 2025 13:20
@yusukebe yusukebe merged commit 7ce0ddd into honojs:next Feb 6, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Paths fail to match when using regex match
2 participants